{extend name="template/base" /}
{block name="content"}
<div class="page-container">
    <form class="form form-horizontal" id="form" method="post" action="{:url('update')}">
        <input type="hidden" name="id" value="{$vo.id ?? ''}">
        <!-- 图片地址 -->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>图片地址：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="图片地址" name="photo_exhibition" value="{$vo.photo_exhibition ?? ''}" datatype="*" nullmsg="请填写图片地址">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <!-- 图片标题 -->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">图片标题：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="图片标题" name="title" value="{$vo.title ?? ''}">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <!-- 活动URL -->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>活动URL：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="活动URL" name="url" value="{$vo.url ?? ''}" datatype="*" nullmsg="请填写活动URL">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <!-- 首页显示 -->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>是否首页显示：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <select name="isindex" class="select" value="{$vo.isindex ?? ''}" placeholder="是否首页显示" datatype="*" nullmsg="请确认是否首页显示">
                    <option hidden  style="display:none;" >
                        {empty name="vo.isindex"}
                        {else /}
                        {$vo.isindex}
                        {/empty}
                    </option>
                    <option value="0">Y</option>
                    <option value="1">N</option>
                </select>
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <!-- 权重 -->
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3"><span class="c-red">*</span>选择显示顺序：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" placeholder="选择显示顺序" name="weight" value="{$vo.weight ?? ''}" datatype="*" nullmsg="请填写显示顺序">
            </div>
            <div class="col-xs-3 col-sm-3"></div>
        </div>

        <div class="row cl">
            <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                <button type="submit" class="btn btn-primary radius">&nbsp;&nbsp;提交&nbsp;&nbsp;</button>
                <button type="button" class="btn btn-default radius ml-20" onClick="layer_close();">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
            </div>
        </div>
    </form>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
<script type="text/javascript" src="__LIB__/My97DatePicker/WdatePicker.js"></script>
<script>
    $(function () {


        $('.skin-minimal input').iCheck({
            checkboxClass: 'icheckbox-blue',
            radioClass: 'iradio-blue',
            increaseArea: '20%'
        });

        $("#form").Validform({
            tiptype: 2,
            ajaxPost: true,
            showAllError: true,
            callback: function (ret){
                ajax_progress(ret);
            }
        });
    })
</script>
{/block}
